package com.zzyl.nursing.domain;

import lombok.Data;

import java.util.List;
@Data
public class TableDataInfo <T>{
    private Long total;
    public List<WechatData> rows;
    private Integer code = 200;
    private String msg = "操作成功";

    public TableDataInfo()
    {}

    public static <T> TableDataInfo<T> success(Long total,List<WechatData> rows)
    {
        TableDataInfo<T> rsp = new TableDataInfo<>();
        rsp.setRows(rows);
        rsp.setTotal(total);
        return rsp;
    }
}
